package com.zl.learning.object;

import org.junit.Test;

import java.io.IOException;

public class TestProcesser {
    @Test
    public void test1() throws IOException {
        ProcessBuilder pb = new ProcessBuilder("cmd.exe", "/c", "dir");
        pb.redirectOutput(ProcessBuilder.Redirect.INHERIT);
        pb.start();

    }
}
